package jjn.acwing.java_basic;

import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/19 10:48
 */
public class Acwing672 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double input = scanner.nextDouble();
        if (input <= 2000) {
            System.out.println("Isento");
        } else if (input <= 3000) {
            System.out.printf("R$ %.2f\n", (input - 2000) * 0.08);
        } else if (input <= 4500) {
            System.out.printf("R$ %.2f\n", 80 + (input - 3000) * 0.18);
        } else {
            System.out.printf("R$ %.2f\n", 80 + 1500 * 0.18 + (input - 4500) * 0.28);
        }
    }
}
